:root {
  --bg: #07111f;
  --panel: rgba(255, 255, 255, 0.1);
  --text: #f5f7ff;
  --muted: #b6c2e0;
  --accent: #ff7aa2;
  --accent-2: #6ee7f9;
  --border: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 162, 0.25), transparent 28%),
    radial-gradient(circle at bottom right, rgba(110, 231, 249, 0.25), transparent 30%),
    var(--bg);
  min-height: 100vh;
}

.page-shell {
  width: min(1150px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.hero-card,
.card {
  background: var(--panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  border-radius: 28px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  padding: 36px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.8rem;
  color: var(--accent-2);
  margin-bottom: 10px;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0 0 12px;
}

h1 span {
  color: var(--accent);
}

.tagline {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), #ff9ba8);
  color: white;
}

.btn-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.profile-circle {
  width: min(260px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.profile-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(7, 17, 31, 0.86);
  display: grid;
  place-items: center;
  font-size: 5rem;
  color: white;
  font-family: 'Playfair Display', serif;
  position: relative;
  overflow: hidden;
}

.profile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-inner .initial {
  position: relative;
  z-index: 1;
}

.profile-img + .initial {
  display: none;
}

main {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.card {
  padding: 24px 28px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.feature-item p {
  color: var(--muted);
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 122, 162, 0.2), rgba(110, 231, 249, 0.2));
  border: 1px solid var(--border);
}

@media (max-width: 800px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* Print styles: preserve the online layout in PDF */
@media print {
  :root, body { background: var(--bg); color: var(--text); }
  body { min-height: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page-shell { width: 100%; margin: 0; box-shadow: none; border-radius: 0; }
  .hero-card, .card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); box-shadow: none; }
  .hero-card { padding: 18px 22px; gap: 14px; }
  .profile-circle { display: grid; width: min(180px, 55vw); }
  .btn { display: none; }
  .eyebrow { color: var(--accent-2); font-size: 0.7rem; margin-bottom: 6px; }
  h1 { font-size: 1.8rem; margin: 0 0 6px; }
  h2 { font-size: 1.1rem; margin: 0; }
  h3 { font-size: 0.95rem; margin-top: 0; }
  .tagline { display: none; }
  .biodata-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; margin-top: 10px; }
  .left-panel, .right-panel { width: auto; padding: 10px 12px; }
  .info-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
  .info-table td { padding: 4px 6px; vertical-align: top; }
  .card { padding: 14px 16px; }
  .section-heading { margin-bottom: 8px; }
  footer { display: none; }
  @page { size: A4; margin: 10mm; }
}

/* Decorative background and animations */
.bg-ornament {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.95;
}
.blob { transform-origin: center; filter: blur(18px); animation: float 10s ease-in-out infinite; }
.blob-1 { animation-duration: 12s; transform: translate3d(-10px,-10px,0); }
.blob-2 { animation-duration: 16s; transform: translate3d(10px,10px,0); }
@keyframes float {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.03) rotate(6deg); }
  100% { transform: translateY(0) scale(1); }
}

/* Visual upgrades for cards and headings */
.hero-card { border-radius: 28px; padding: 40px; background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.06); }
.card { border-radius: 18px; border: 1px solid rgba(255,255,255,0.04); }
.section-heading { margin-bottom: 12px; }
.section-heading h2 { margin: 4px 0 0; font-size: 1.35rem; color: var(--text); }
.section-heading .eyebrow { margin-bottom: 6px; color: var(--accent-2); }

/* Profile photo / initial styling */
.profile-circle { padding: 10px; background: linear-gradient(135deg, rgba(255,122,162,0.18), rgba(110,231,249,0.12)); }
.profile-inner { position: relative; overflow: hidden; }
.profile-inner::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 8px 30px rgba(0,0,0,0.38) inset; }
.profile-inner .initial { font-size: 3.6rem; font-weight: 700; color: white; }

/* Gradient ring around profile */
.profile-circle { display: grid; place-items: center; }
.profile-circle::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: conic-gradient(from 120deg, rgba(255,122,162,0.12), rgba(110,231,249,0.12)); z-index: -2; filter: blur(30px); }

.biodata-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 16px; }
.left-panel, .right-panel { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); padding: 16px; border-radius: 12px; }
.info-table td { padding: 8px 6px; color: var(--muted); }
.detail-list li { color: var(--muted); }

@media (max-width: 900px) {
  .biodata-grid { grid-template-columns: 1fr; }
  .profile-circle::before { width: 220px; height: 220px; }
}

@media print {
  .bg-ornament { display: block; }
  .profile-circle::before { display: block; }
}
